from socket import *
import random
import time

serverIp = input("请输入服务器的ip:")
g_socketList = []
s = socket(AF_INET, SOCK_STREAM)
s.connect((serverIp, 7788))
g_socketList.append(s)

while True:
    for s in g_socketList:
        s.send(str(random.randint(0,100)))